class A:
    pass


class B(A):
    pass

b = B()

print(isinstance(b, A)) #True
print(type(b))       #<class '__main__.B'>
print(id(B))         #1245516379448
print(id(type(b)))   #1245516379448
print(type(b) is B)  # True
print(type(b) == B)  # True
